import request from '@/utils/request'

export async function login(username, password) {
  let res = await request({
    url: '/login',
    method: 'get',
    params: {
        number:  username,
        password: password
    }
  })


  return res.data;
}

export function logout() {
  // return request({
  //   url: '/user/logout',
  //   method: 'post'
  // })

  return new Promise(async(resolve, reject) => {
  
    resolve()
  })
}
